import api from '../api'
import settings from '~/conf/settings'

const state = {

}


const getters = {

}

const actions = {//

  productCateGoryList({commit, dispatch}, params) {
    return api.get(api.url('productCateGoryList'), params)
  },

  createProductCateGory({commit, dispatch}, params) {
    return api.post(api.url('createProductCateGory'), params)
  },

  productCategoryDetail({commit, dispatch}, params) {
    return api.get(api.url('productCategoryDetail', params.id))
  },

  productCategoryEdit({commit, dispatch}, params) {
    return api.put(api.url('productCategoryEdit', params.id), params)
  },

  prodcutCategoryDelete({commit, dispatch}, params) {
    return api.delete(api.url('prodcutCategoryDelete', params.id))
  },

  categoryAll({commit, dispatch}) {
    return api.get(api.url('categoryAll'))
  }

}

const mutations = {

}

export default {
  state,
  getters,
  actions,
  mutations
}
